﻿<Window x:Class="F5.BigIp.LocalTrafficManager.UI.Views.DeviceWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="clr-namespace:F5.BigIp.LocalTrafficManager.UI.ViewModels"
        Title="Add LoadBalancer" Height="170" Width="220"
        WindowStartupLocation="CenterOwner"
        ResizeMode="CanResize"
        ShowInTaskbar="False">

    <Window.DataContext>
        <local:DeviceViewModel />
    </Window.DataContext>

    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <TextBlock Margin="0,0,5,0" Grid.Row="1" Grid.Column="1" FontWeight="Normal">Host</TextBlock>
        <TextBox  Margin="0,0,0,5" Grid.Row="1" Grid.Column="2" Text="{Binding LoadBalancer.Host}" Width="100"/>

        <TextBlock Margin="0,0,5,0" Grid.Row="2" Grid.Column="1" FontWeight="Normal">User Name</TextBlock>
        <TextBox Margin="0,0,0,5" Grid.Row="2" Grid.Column="2" Text="{Binding LoadBalancer.UserName}" Width="100"/>

        <TextBlock Margin="0,0,5,0" Grid.Row="3" Grid.Column="1" FontWeight="Normal">Password</TextBlock>
        <TextBox Margin="0,0,0,5" Grid.Row="3" Grid.Column="2" Text="" Width="100"/>

        <Grid Grid.Column="0" Grid.Row="5" Grid.ColumnSpan="4">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>

            <Button Margin="0, 0, 5, 10" Click="OkButton_OnClick" Grid.Column="1" Width="60">Ok</Button>
            <Button Margin="5, 0, 0 10" Click="CancelButton_OnClick" Grid.Column="2" Width="60">Cancel</Button>
        </Grid>
    </Grid>

</Window>
